
<!DOCTYPE HTML>
<html lang="zh-cn" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>最佳实践 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../Reference.html" />
    
    
    <link rel="prev" href="CORS-and-Proxy.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    总览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Getting-started.html">
            
                <a href="../Getting-started.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Features.html">
            
                <a href="../Features.html">
            
                    
                    技术栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Structure.html">
            
                <a href="../Structure.html">
            
                    
                    目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    深入了解
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="State-management.html">
            
                <a href="State-management.html">
            
                    
                    谈状态管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="URL-is-soul-of-SPA.html">
            
                <a href="URL-is-soul-of-SPA.html">
            
                    
                    URL 是单页应用的精华
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="Service-layer.html">
            
                <a href="Service-layer.html">
            
                    
                    引入服务层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="Ajax-interface.html">
            
                <a href="Ajax-interface.html">
            
                    
                    Ajax 接口化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="Configuration.html">
            
                <a href="Configuration.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="CORS-and-Proxy.html">
            
                <a href="CORS-and-Proxy.html">
            
                    
                    跨域与代理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.7" data-path="Best-practice.html">
            
                <a href="Best-practice.html">
            
                    
                    最佳实践
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Reference.html">
            
                <a href="../Reference.html">
            
                    
                    参考
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <a target="_blank" href="https://github.com/kenberkeley/vue-demo/issues">
            
                    
                    问题反馈（issues）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <a target="_blank" href="https://github.com/kenberkeley/vue-demo/releases">
            
                    
                    版本迭代（releases）
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >最佳实践</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#xA7;-&#x6700;&#x4F73;&#x5B9E;&#x8DF5;">&#xA7; &#x6700;&#x4F73;&#x5B9E;&#x8DF5;</h1>
<blockquote>
<p>&#x57FA;&#x672C;&#x7684;&#x547D;&#x540D;&#x89C4;&#x8303;&#x3001;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x7B49;&#xFF0C;&#x8BF7;&#x81EA;&#x884C;&#x67E5;&#x9605;&#x76F8;&#x5173;&#x8D44;&#x6599;<br>&#x9879;&#x76EE;&#x4F7F;&#x7528; <a href="http://eslint.org/" target="_blank">ESLint</a> &#x8FDB;&#x884C;&#x9759;&#x6001;&#x68C0;&#x6D4B;&#xFF0C;&#x914D;&#x7F6E;&#x89C1; <code>.eslintrc</code></p>
</blockquote>
<hr>
<ul>
<li>&#x901A;&#x8BFB; Vue.js <a href="http://v1.vuejs.org/guide/" target="_blank">Guide</a> / <a href="http://v1.vuejs.org/api/" target="_blank">API</a> &#x6587;&#x6863;&#xFF0C;&#x901A;&#x8BFB; Vue Router <a href="https://github.com/vuejs/vue-router/tree/1.0/docs/zh-cn" target="_blank">&#x6587;&#x6863;</a></li>
</ul>
<blockquote>
<p>&#x4F8B;&#x5982;&#xFF0C;<code>slot</code> &#x548C; <code>inline-template</code> &#x7684;&#x7F16;&#x8BD1;&#x4F5C;&#x7528;&#x57DF;&#x641E;&#x6E05;&#x695A;&#x4E86;&#x5417;&#xFF1F;</p>
</blockquote>
<hr>
<ul>
<li>&#x606A;&#x5B88;&#x4EE3;&#x7801;&#x3001;&#x6A21;&#x5757;&#x5206;&#x79BB;&#xFF0C;<a href="https://en.wikipedia.org/wiki/Don&apos;t_repeat_yourself" target="_blank">DRY</a> &#x7684;&#x5F00;&#x53D1;&#x7406;&#x5FF5;</li>
</ul>
<blockquote>
<p>&#x672C; demo &#x7684;&#x7F16;&#x7801;&#x79C9;&#x627F;&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#xFF0C;&#x4E0D;&#x59A8;&#x53C2;&#x9605;</p>
</blockquote>
<hr>
<ul>
<li>&#x5355;&#x7EC4;&#x4EF6;&#x6587;&#x4EF6;&#x4EE3;&#x7801;&#x91CF;&#x82E5;&#x8D85; 200 &#x884C;&#xFF0C;&#x4E00;&#x822C;&#x90FD;&#x6709;&#x4F18;&#x5316;&#x7684;&#x7A7A;&#x95F4;</li>
</ul>
<blockquote>
<p>&#x5173;&#x952E;&#x662F; <strong>&#x62C6;</strong>&#xFF0C;&#x524D;&#x63D0;&#x662F;&#x7C92;&#x5EA6;&#x8981;&#x5408;&#x7406;</p>
</blockquote>
<hr>
<ul>
<li>&#x5584;&#x7528; Webpack &#x7684;&#x8DEF;&#x5F84;&#x522B;&#x540D;</li>
</ul>
<pre><code class="lang-js"><span class="hljs-keyword">import</span> FooBar <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;../../../../components/FooBar&apos;</span> <span class="hljs-comment">// Bad  </span>
<span class="hljs-keyword">import</span> FooBar <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;@/components/FooBar&apos;</span>           <span class="hljs-comment">// Good</span>
</code></pre>
<hr>
<ul>
<li>&#x5F15;&#x5165;&#x6587;&#x4EF6;&#x65F6;&#xFF0C;&#x7701;&#x7565;&#x9ED8;&#x8BA4;&#x89E3;&#x6790;&#x7684;&#x6587;&#x4EF6;&#x540E;&#x7F00;</li>
</ul>
<blockquote>
<p>&#x914D;&#x7F6E;&#x89C1; <code>build/webpack.base.conf.js</code> &#x4E2D;&#x7684; <code>resolve.extensions</code></p>
</blockquote>
<pre><code class="lang-js"><span class="hljs-keyword">import</span> FooBar <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;./FooBar.js&apos;</span>  <span class="hljs-comment">// No good enough</span>
<span class="hljs-keyword">import</span> FooBar <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;./FooBar&apos;</span>     <span class="hljs-comment">// Good</span>
</code></pre>
<hr>
<ul>
<li>&#x6700;&#x5C0F;&#x5316;&#x5F15;&#x5165;&#x7C7B;&#x5E93;&#xFF08;&#x9664;&#x975E;&#x60A8;&#x4F7F;&#x7528;&#x4E86; <a href="https://github.com/rollup/rollup" target="_blank">rollup</a> &#x6216; <a href="https://github.com/lodash/lodash-webpack-plugin" target="_blank"><code>lodash-webpack-plugin</code></a> &#x7B49;&#xFF09;</li>
</ul>
<pre><code class="lang-js"><span class="hljs-keyword">import</span> _ <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;lodash&apos;</span>               <span class="hljs-comment">// Bad</span>
<span class="hljs-keyword">import</span> isEmpty <span class="hljs-keyword">from</span> <span class="hljs-string">&apos;lodash/isEmpty&apos;</span> <span class="hljs-comment">// Good</span>
</code></pre>
<hr>
<ul>
<li>&#x8FC7;&#x957F;&#x7684; HTML &#x4EE3;&#x7801;&#x5E94;&#x5F53;&#x62C6;&#x5199;</li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-control&quot;</span> <span class="hljs-attr">v-model</span>=<span class="hljs-string">&quot;text&quot;</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">&quot;Please enter your name...&quot;</span> <span class="hljs-attr">required</span>&gt;</span>
<span class="hljs-comment">&lt;!-- &#x2191; Bad &#xB7; Good &#x2193; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">input</span>
  <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text&quot;</span>
  <span class="hljs-attr">v-model</span>=<span class="hljs-string">&quot;text&quot;</span>
  <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-control&quot;</span>
  <span class="hljs-attr">placeholder</span>=<span class="hljs-string">&quot;Please enter your name...&quot;</span>
  <span class="hljs-attr">required</span>&gt;</span>
</code></pre>
<hr>
<ul>
<li>&#x6A21;&#x677F;&#x4E2D;&#x4F7F;&#x7528; <code>:[prop]</code> &#x66FF;&#x4EE3; <code>v-bind:[prop]</code>&#xFF0C;&#x4F7F;&#x7528; <code>@[verb]</code> &#x66FF;&#x4EE3; <code>v-on:[verb]</code></li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">foo-bar</span> <span class="hljs-attr">v-bind:xxx</span>=<span class="hljs-string">&quot;yyy&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">foo-bar</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">v-on:click</span>=<span class="hljs-string">&quot;handleClick&quot;</span>&gt;</span>Click me<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-comment">&lt;!-- &#x2191; Bad &#xB7; Good &#x2193; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">foo-bar</span> <span class="hljs-attr">:xxx</span>=<span class="hljs-string">&quot;yyy&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">foo-bar</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">button</span> @<span class="hljs-attr">click</span>=<span class="hljs-string">&quot;handleClick&quot;</span>&gt;</span>Click me<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
</code></pre>
<hr>
<ul>
<li>&#x4E00;&#x822C;&#x6765;&#x8BF4;&#xFF0C;&#x6D89;&#x53CA;&#x5230;&#x6743;&#x9650;&#x7684;&#x5FC5;&#x987B;&#x7528; <code>v-if</code> &#x800C;&#x975E; <code>v-show</code></li>
</ul>
<blockquote>
<p>&#x4F8B;&#x5982;&#xFF0C;&#x7528;&#x6237;&#x5FC5;&#x987B;&#x767B;&#x5F55;&#x540E;&#x624D;&#x80FD;&#x67E5;&#x770B;&#x7684;&#xFF0C;&#x8BF7;&#x7528; <code>v-if</code></p>
</blockquote>
<hr>
<ul>
<li>&#x675C;&#x7EDD;<a href="http://v1.vuejs.org/guide/components.html#Fragment-Instance" target="_blank">&#x7247;&#x6BB5;&#x5B9E;&#x4F8B;</a></li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
<span class="hljs-comment">&lt;!-- &#x2191; Bad &#xB7; Good &#x2193; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
</code></pre>
<hr>
<ul>
<li>&#x5C3D;&#x91CF;&#x907F;&#x514D;&#x5728;&#x6A21;&#x677F;&#x4E2D;&#x8BBE;&#x7F6E;&#x8FC7;&#x591A;&#x7684;&#x5224;&#x65AD;&#x6761;&#x4EF6;&#xFF0C;&#x5584;&#x7528;<a href="http://v1.vuejs.org/guide/computed.html" target="_blank">&#x8BA1;&#x7B97;&#x5C5E;&#x6027;</a></li>
</ul>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">v-if</span>=<span class="hljs-string">&quot;i===0&quot;</span>&gt;</span>Zero<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">v-if</span>=<span class="hljs-string">&quot;i===1&quot;</span>&gt;</span>One<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">v-if</span>=<span class="hljs-string">&quot;i===2&quot;</span>&gt;</span>Two<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
  data: () =&gt; ({ i: <span class="hljs-number">0</span> })
}
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-comment">&lt;!-- &#x2191; Bad &#xB7; Good &#x2193; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
  data: () =&gt; ({ i: <span class="hljs-number">0</span> }),
  computed: {
    text () {
      <span class="hljs-keyword">return</span> [<span class="hljs-string">&apos;Zero&apos;</span>, <span class="hljs-string">&apos;One&apos;</span>, <span class="hljs-string">&apos;Two&apos;</span>][<span class="hljs-keyword">this</span>.i]
    }
  }
}
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
</code></pre>
<hr>
<ul>
<li>&#x201C;&#x7269;&#x4EE5;&#x7C7B;&#x805A;&#x201D;&#xFF0C;&#x5584;&#x7528;&#x76EE;&#x5F55;&#x81EA;&#x5305;&#x542B;</li>
</ul>
<blockquote>
<p>&#x4F8B;&#x5982;&#xFF1A;<br><code>src/components/Select/</code> &#x4E0B;&#x5B58;&#x653E;&#x7740;&#x5168;&#x5C40;&#x901A;&#x7528;&#x7684;&#x4E0B;&#x62C9;&#x6846;&#x7EC4;&#x4EF6;<br><code>src/components/Sidebar/</code> &#x4E0B;&#x5B58;&#x653E;&#x7740;&#x4FA7;&#x680F;&#x7EC4;&#x4EF6;&#x4E3B;&#x4F53; <code>index.vue</code> &#x4E0E;&#x5176;&#x5206;&#x62C6;&#x51FA;&#x6765;&#x7684;&#x5BFC;&#x822A;&#x94FE;&#x63A5;&#x7EC4;&#x4EF6; <code>Link.vue</code></p>
</blockquote>
<hr>
<ul>
<li>&#x8BF7;&#x5C3D;&#x91CF;&#x4FDD;&#x8BC1;&#x6570;&#x636E;&#x6D41;&#x7684;&#x53EF;&#x8FFD;&#x8E2A;&#x6027;&#x3002;&#x5C3D;&#x91CF;&#x4E0D;&#x8981;&#x4F7F;&#x7528; <code>$parent</code>&#xFF0C;&#x800C;&#x662F;&#x901A;&#x8FC7; <code>props</code> &#x5C5E;&#x6027;&#x63A5;&#x6536;&#x7236;&#x7EC4;&#x4EF6;&#x7684;&#x4F20;&#x5165;</li>
</ul>
<hr>
<ul>
<li>&#x5728; Vue &#x5C42;&#x9762;&#x4E0A;&#xFF0C;&#x63D0;&#x9AD8;&#x6548;&#x80FD;&#x7684;&#x4F18;&#x5316;&#x624B;&#x6BB5;&#x6709;&#x5F88;&#x591A;&#xFF0C;&#x4F8B;&#x5982; <a href="http://v1.vuejs.org/guide/list.html#track-by" target="_blank"><code>track-by</code></a>&#x3001;<a href="http://v1.vuejs.org/guide/list.html#Using-Object-freeze" target="_blank"><code>Object.freeze</code></a>&#x3001;<a href="http://v1.vuejs.org/guide/components.html#keep-alive" target="_blank"><code>keep-alive</code></a>&#x3001;<a href="https://github.com/vuejs/vue-router/blob/1.0/docs/zh-cn/pipeline/can-reuse.md" target="_blank"><code>canReuse</code></a> &#x7B49;</li>
</ul>
<blockquote>
<p>&#x66F4;&#x591A;&#x6280;&#x5DE7;&#x53EF;&#x53C2;&#x8003; <a href="http://pan.baidu.com/s/1o8QZEzg" target="_blank">Vue &#x6027;&#x80FD;&#x4F18;&#x5316;&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#xB7;&#x963F;&#x91CC;&#x79FB;&#x52A8;&#xB7;&#x5218;&#x6B23;&#x7136;</a></p>
</blockquote>
<hr>
<ul>
<li><em>&#xFF08;&#x672A;&#x5B8C;&#x5F85;&#x7EED;&#xFF0C;&#x6B22;&#x8FCE; PR&#xFF09;</em></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="CORS-and-Proxy.html" class="navigation navigation-prev " aria-label="Previous page: 跨域与代理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../Reference.html" class="navigation navigation-next " aria-label="Next page: 参考">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"最佳实践","level":"1.5.7","depth":2,"next":{"title":"参考","level":"1.6","depth":1,"path":"Reference.md","ref":"Reference.md","articles":[]},"previous":{"title":"跨域与代理","level":"1.5.6","depth":2,"path":"development/CORS-and-Proxy.md","ref":"development/CORS-and-Proxy.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh-cn","gitbook":"*"},"file":{"path":"development/Best-practice.md","mtime":"2017-04-22T13:08:34.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-22T13:44:37.529Z"},"basePath":"..","book":{"language":"zh-cn"}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

